package org.linlinjava.litemall.db.domain;

import org.springframework.util.CollectionUtils;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;

public class RecommandCoupon {

    public RecommandCoupon() {
        this.couponId = -1;
        this.userCouponId = -1;
        this.couponPrice = BigDecimal.ZERO;
        this.couponLength = 0;
    }

    public RecommandCoupon(Integer couponId, Integer userCouponId, BigDecimal couponPrice, Integer couponLength) {
        this.couponId = couponId;
        this.userCouponId = userCouponId;
        this.couponPrice = couponPrice;
        this.couponLength = couponLength;
    }

    private Integer couponId;

    private Integer userCouponId;

    private BigDecimal couponPrice;

    private Integer couponLength;

    public Integer getCouponLength() {
        return couponLength;
    }

    public void setCouponLength(Integer couponLength) {
        this.couponLength = couponLength;
    }

    public Integer getCouponId() {
        return couponId;
    }

    public void setCouponId(Integer couponId) {
        this.couponId = couponId;
    }

    public Integer getUserCouponId() {
        return userCouponId;
    }

    public void setUserCouponId(Integer userCouponId) {
        this.userCouponId = userCouponId;
    }

    public BigDecimal getCouponPrice() {
        return couponPrice;
    }

    public void setCouponPrice(BigDecimal couponPrice) {
        this.couponPrice = couponPrice;
    }
}
